package com.zrspring.libv2;

import android.content.Context;

/**
 * Created by shopping on 2017/12/22 11:03.
 * https://github.com/wheroj
 */

public class LibInit {
    private static LibInit instance;

    private boolean isDebug;
    private Context context;

    private LibInit() {

    }

    public static LibInit getInstance() {
        if (instance == null) {
            synchronized (LibInit.class) {
                if (instance == null) {
                    instance = new LibInit();
                }
            }
        }
        return instance;
    }

    public void init(Context context) {
        this.context = context;
    }

    public Context getContext() {
        return context;
    }
    public void setDebug(boolean isDebug) {
        this.isDebug = isDebug;
    }

    public boolean getDebug() {
        return isDebug;
    }
}
